<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>模板字符串</title>
  </head>
  <body>
    <script>
      // 1、当做普通字符串使用
      // console.log(`越努力越幸运`);

      // 2、字符串中嵌入变量
      const name = '张三';
      const age = 20;
      console.log(`大家好，我叫${name}，我今年${age}岁了！`);
    </script>
  </body>
</html>
